#include <stdio.h>  
  
int main() {  
    int t, n;  
    scanf("%d", &t);  
    while (t--) {  
        int game, cnt = 0;  
        scanf("%d", &n);  
        game = n * (n - 1) / 2;  
        while (game > 0) {  
            game -= n / 2;  
            cnt++;  
        }  
        printf("%d\n", cnt);  
    }  
    return 0;  
}  